import "antd/dist/antd.less";
import '../styles/globals.css'
import '../styles/common.less'
import App, {
  Container
} from 'next/app'
import {
  Component
} from 'react'
import Head from '../components/headNav'


class MyApp extends App {
  static async getInitialProps({
    Component,
    router,
    ctx
  }) {
    let pageProps = {}
    if (Component.getInitialProps) {
      pageProps = await Component.getInitialProps(ctx)
    }
    return {
      pageProps
    }
  }

  render() {
    const {
      Component,
      pageProps
    } = this.props
    return <Component {
      ...pageProps
    }
    />
  }
}

export default MyApp